package sostats.core.metadata;

import java.util.HashMap;

public class Dictionary {
	private final HashMap<String, String> items;
	public Dictionary(){
		items = new HashMap<String, String>();
	}
	public void addItem(String name, String description){
		items.put(name,description);
	}
	public Metadata lookUp(Describable describable){
		String description = items.get(describable.getName());
		return Metadata.newInstance(describable.getName(), description);
	}
}
